package tjtt.common.enums;

/**
 * @Author: luoyi
 * @Description: 异常枚举
 * @Date: 16:36 2017/8/14
 * @Version: 1.0.0
 * @Modified By: xxx
 */
public enum ExceptionEnum {

    SQLException("Sql异常",50001),EmptyDataException("空数据异常",50002),
    LoginExpiredException("登录过期",50003),NullPointerException("空指针异常", 50004),
    FileNotFoundExcetion("资源未找到",50005),OtherException("服务器内部错误，请联系管理员",50000);
    private String name;
    private int status;

    ExceptionEnum(String name, int status) {
        this.name = name;
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
